<script type="text/javascript">
function addmj(id) {
    if (confirm('确认封禁'+id+'?')) {
    	var url = "<?php echo SystemProperties::$app_host;?>"+"/user/addmj/"+id;
    	doPost(url,'','callbackformj');	
    }
}
function delmj(id) {
    if (confirm('确认解除封禁'+id+'?')) {
	   var url = "<?php echo SystemProperties::$app_host;?>"+"/user/delmj/"+id;
	   doPost(url,'','callbackformj');	
    }
    
}
</script>
<div id="callbackformj"></div>
<FORM id="commentsProfile" method="get" name="commentsProfile" action="<?php echo SystemProperties::$app_host;?>/user/showmj">
<table width="100%" border="0" cellspacing="1"  cellpadding="0" class="navi" style="margin:10px;">
  <tr>
  <td>
查询相同IP的用户，输入用户ID：
  <input name="uid" type="text" value="" size="15" >  
  <br />
  <INPUT class="comment_btn_Submit" type="submit" value="查询" /></td>
   <td align="center"></td>
    
  </tr>
</table>
</form>

<?php 
if (empty($list)) {
    echo '未找到相同IP用户';
} else {
    echo '相同IP用户如下<br />';
    foreach ($list as $v) {
        echo 'IP:'.$v['g_users']['g_ip'].' &nbsp;&nbsp;用户：';
        if ($v['black'] == 1) {
            echo '<del>'.$v['g_users']['g_uid'].'</del>';
            echo '&nbsp;&nbsp;&nbsp;&nbsp;<b>【封禁中】</b> ';
            echo '<a href="javascript:delmj('.$v['g_users']['g_uid'].')">解封</a>';
        } else {
            echo $v['g_users']['g_uid'];
            echo '&nbsp;&nbsp;&nbsp;&nbsp;';
            echo '<a href="javascript:addmj('.$v['g_users']['g_uid'].')">禁用此用户</a>';
        }
        echo '<br />';
    }
}

?>
<br /><br /><br /><br /><br />

本平台 以下用户已经被禁用：
<br />
<?php 
foreach ($black_list as $id) {
	echo $id;
	echo '<a href="javascript:delmj('.$id.')">解封</a>';
	echo '<br />';
}

